<script lang="ts" setup>
  import Button from '@sscd/button';
  import Message from '@sscd/message';
  const success = () => {
    const hide = Message.loading('Action in progress..', 0);
    setTimeout(hide, 2500);
  };
</script>

<template>
  <div class="demo">
    <div class="demo-title">加载中</div>
    <div class="demo-content">
      <Button @click="success">Display a loading indicator</Button>
    </div>
  </div>
</template>
